package com.iweb.auth.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者: jack
 * 时间: 2020-09-01 0001 09:59
 * 描述: MyBatisConfig
 */
@MapperScan("com.iweb.auth.mapper")
@Configuration
public class MyBatisConfig {

    // mybatis 的分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
